package com.iaiai.cobra.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.iaiai.cobra.repository.bean.Post;
import com.iaiai.cobra.repository.bean.Role;

import java.util.List;

/**
 * Created with RoleService.
 * Package: com.iaiai.cobra.system.service
 * Author: iaiai
 * Create Time: 2024/6/28 20:59
 * QQ: 176291935
 * Email: 176291935@qq.com
 * Description:
 */
public interface RoleService extends IService<Role> {

    //查询排序最大的
    Role queryMax();

    //分页查询
    Page<Role> queryPage(Page page, String search);

    //查询用户的角色
    List<Role> queryByUser(Long userId);

}
